<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String p=request.getParameter("phone");
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<title>登录</title>
<meta name="viewport"
	content="width=device-width,initial-scale=1,user-scalable=0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="登录,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="<%=basePath%>css/weui.css" />
<link rel="stylesheet" href="<%=basePath%>css/example.css" />
<script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery.js"></script>
<script type="text/javascript" src="<%=basePath%>js/familyUserInfo.js"></script>
</head>
<script type="text/javascript">
var basePath="<%=basePath%>";
// 屏蔽屏幕自身手势
// document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
$(document).ready(function(){
   var menstrualHistory=$("#menstrualHistory").val();
   if(menstrualHistory!=""){
   $("#yuejing").show();
   }
});


 </script>

<body ontouchstart>
	<div class="container js_container"></div>
	
	
	<form action="" name="form" id="form">
	<div class="page">
		<div class="bd">
			<div class="weui_grids">
				
			</div>
			
			<div class="weui_cell">
				<div class="weui_cell_hd">
					<label class="weui_label" style="width: 6em">角色姓名：</label>
				</div>
				<div class="weui_cell_bd weui_cell_primary">
					<input class="weui_input" type="text" name="roleName" id="roleName" placeholder="请输入角色姓名" value="${bean.roleName }">
				</div>
			</div>
			<div class="weui_cell weui_cell_select weui_select_after">
                <div class="weui_cell_hd">
                 	  性别：
            </div>
                <div class="weui_cell_bd weui_cell_primary">
                    <select class="weui_select" name="sex" id="sex" onchange="selectMenstrual();" >
                   
                        <option value="0"  <c:if test="${bean.sex==0 }">selected="selected"</c:if> >男</option>
                        <option value="1" <c:if test="${bean.sex==1 }">selected="selected"</c:if>>女</option>
                    </select>
                </div>
            </div>
            <div class="weui_cell weui_cell_select weui_select_after">
                <div class="weui_cell_hd">
                 	 婚姻：
            </div>
                <div class="weui_cell_bd weui_cell_primary">
                    <select class="weui_select" name="maritalStatus" id="maritalStatus"  >
                   
                        <option value="0"  <c:if test="${bean.maritalStatus==0 }">selected="selected"</c:if> >未婚</option>
                        <option value="1" <c:if test="${bean.maritalStatus==1 }">selected="selected"</c:if>>已婚</option>
                    </select>
                </div>
            </div>
			<div class="weui_cell">
				<div class="weui_cell_hd">
					<label class="weui_label" style="width: 6em">出生日期：</label>
				</div>
				<div class="weui_cell_bd weui_cell_primary">
					<input class="weui_input" type="date" name="birth" id="birth" placeholder="请输入出生日期" value="${bean.birth }">
				</div>
			</div>
			<div class="weui_cell">
               <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label" style="width: 7em">身高(cm)：</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="number" pattern="[0-9]*" placeholder="请输入身高" id="height" name="height" value="${bean.height }">
                </div>
            </div>
            </div>
            <div class="weui_cell">
               <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label" style="width: 7em">体重(kg)：</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="number" pattern="[0-9]*" placeholder="请输入体重" id="weight" name="weight" value="${bean.weight }"> 
                </div>
            </div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_hd"><label for="profession" class="weui_label">职业:</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" name="profession" placeholder="请输入职业" value="${bean.profession }">
                </div>
            </div>
			
		</div>
		<div class="weui_btn_area">
			<a class="weui_btn weui_btn_primary login" href="javascript:"
				id="showTooltips" onclick="toSaveCase('${bean.id}');">保存角色信息</a>
		</div>
		
	</div></form>
	  <!--     toast开始 -->
        <div id="loadingToast" class="weui_loading_toast" style="display: none;">
				<div class="weui_mask_transparent"></div>
				<div class="weui_toast">
					<div class="weui_loading">
						<div class="weui_loading_leaf weui_loading_leaf_0"></div>
						<div class="weui_loading_leaf weui_loading_leaf_1"></div>
						<div class="weui_loading_leaf weui_loading_leaf_2"></div>
						<div class="weui_loading_leaf weui_loading_leaf_3"></div>
						<div class="weui_loading_leaf weui_loading_leaf_4"></div>
						<div class="weui_loading_leaf weui_loading_leaf_5"></div>
						<div class="weui_loading_leaf weui_loading_leaf_6"></div>
						<div class="weui_loading_leaf weui_loading_leaf_7"></div>
						<div class="weui_loading_leaf weui_loading_leaf_8"></div>
						<div class="weui_loading_leaf weui_loading_leaf_9"></div>
						<div class="weui_loading_leaf weui_loading_leaf_10"></div>
						<div class="weui_loading_leaf weui_loading_leaf_11"></div>
					</div>
					<p class="weui_toast_content">保存中...</p>
				</div>
			</div>
			
			<div id="toast" style="display: none;">
        <div class="weui_mask_transparent"></div>
        <div class="weui_toast">
            <i class="weui_icon_toast"></i>
            <p class="weui_toast_content" id="info">保存成功</p>
        </div>
    </div>
<!--     toast结束 -->

</body>
</html>
